package com.jxb.service.listener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.ApplicationEventMulticaster;
import org.springframework.stereotype.Component;

@Component
public class TestPublisher {

    @Autowired
    private ApplicationEventMulticaster applicationEventMulticaster;

    public void test() {
        AApplicationEvent aApplicationEvent = new AApplicationEvent("hahahahah");
        applicationEventMulticaster.multicastEvent(aApplicationEvent);
    }


}
